<?php
// Test CVS

require_once 'Excel/reader.php';
$data = new Spreadsheet_Excel_Reader();
$data->setOutputEncoding('CP936');
$data->read('aaa.xls');

error_reporting(E_ALL ^ E_NOTICE);

for ($i = 2; $i <= $data->sheets[0]['numRows']; $i++) {
	for ($j = 4; $j <= 11; $j++) {
			
			if($data->sheets[0]['cells'][$i][$j]==""){
				echo $nuk="null";	
			}
			echo $data->sheets[0]['cells'][$i][$j].",";
		 
	}
	echo "<br>";

}

?>
